#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	FILE* pf = fopen("test.txt", "r");
	if (pf == NULL)
	{
		perror("fopen");
		return 1;
	}
	/*fputc('a', pf);
	int a = 0;
	for (a = 'a'; a <= 'z'; a++)
	{
		fputc(a, pf);
	}*/
	int ch = 0;
	
	while ((ch=fgetc(pf))!=EOF)
	{
		//printf("%c ", ch);
		putchar(ch);
		
		
	}
	fclose(pf);
	pf = NULL; 
	return 0;

}